package preprocess
/**
  * Created by Alex on 2016/12/15.
  */
class Demo() {
  Demo.sInt += 1;
  val para1 = 0;
  val para2 = "string"
  def instMethod1(): Unit ={
  }
  def instMethod2(param1:Int):Int ={
    param1
  }

}
object Demo{
  var sInt = 0;
  def main(args:Array[String]): Unit ={
    val d = new Demo()
    println(Demo.sInt)
    val d2 = new Demo()
    print(Demo.sInt)
    classMethod1()
    classMethod2(47)
    classMethod3((a)=>a)
    d.instMethod1()
    d.instMethod2(47)
  }
  def classMethod1():Unit = {
  }
  def classMethod2(param1:Int):Int = {
    0
  }
  def classMethod3(func:(Int)=>Int):Int = {
    func(0)
  }
}